package main

import "fmt"

// make 创建 切片
func main() {

	a := make([]int, 5)

	for i := 0; i < len(a); i++ {
		a[i] = i * 2
	}

	fmt.Printf("a : %v  len : %d  cap : %d \n", a, len(a), cap(a))

	b := make([]int, 5, 10)
	for i := 0; i < len(b); i++ {
		b[i] = i * 3
	}

	fmt.Printf("b : %v  len : %d  cap : %d \n", b, len(b), cap(b))

}
